package com.mutou.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.github.miemiedev.mybatis.paginator.domain.PageBounds;
import com.mutou.domian.dao.ArticleDao;
import com.mutou.domian.model.Article;
import com.mutou.service.ArticleService;

@Service
public class ArticleServiceImpl implements ArticleService{

	@Autowired
	private ArticleDao articleDao;
	
	@Override
	public void save(Article entity) {
		articleDao.save(entity);
	}

	@Override
	public List<Article> listByPage(Map<String, Object> param, PageBounds page) {
		return articleDao.listByPage(param, page);
	}

	@Override
	public Article queryEntById(int id) {
		return articleDao.queryEntById(id);
	}

	@Override
	public void update(Article entity) {
		articleDao.update(entity);
	}

}
